package com.example.common.constant;

/**
 * 商品模块常量
 *
 * @author GuLin
 * @date 2021-06-07 21:45
 */
public class ProductConstant {

    /**
     * 商品属性枚举
     */
    public enum AttrEnum {
        /**
         * 基本属性
         */
        ATTR_TYPE_BASE(1, "基本属性"),
        /**
         * 销售属性
         */
        ATTR_TYPE_SALE(0, "销售属性");
        private int code;
        private String msg;

        AttrEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

    /**
     * 商品SPU枚举
     */
    public enum SpuInfoEnum{
        /**
         * 新建
         */
        NEW(0,"新建"),
        /**
         * 已上架
         */
        UP(1,"已上架"),
        /**
         * 已下架
         */
        DOWN(2,"已下架");
        private int code;
        private String msg;

        SpuInfoEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }
}
